<html>
<head>
<title>Learning require.js</title>
<!--
___ require.js ___
A module is different from a traditional script file in that it defines a well-scoped object that avoids polluting the global namespace. It can explicitly list its dependencies and get a handle on those dependencies without needing to refer to global objects, but instead receive the dependencies as arguments to the function that defines the module. Modules in RequireJS are an extension of the Module Pattern, with the benefit of not needing globals to refer to other modules.
The RequireJS syntax for modules allows them to be loaded as fast as possible, even out of order, but evaluated in the correct dependency order, and since global variables are not created, it makes it possible to load multiple versions of a module in a page.
-->
<script data-main="req/main" src="./scripts/require.js"></script>
<script type="javascript/text" src="./req/other.js"></script>
<script type="text/javascript">
function doit() {
    console.log('done');
}
</script>
</head>
<body>
<button type="button" name="button" onclick="doit()">Create</button>
</body>
</html>
